/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Tom
 */
public class Triangle {
    Vector3[] vertices;
    Vector3[] normals; //normala v kazdem vrcholu
    
    public Triangle(){
        vertices = new Vector3[3];
        normals = new Vector3[3];
    }
    
    public Triangle(Vector3 v1, Vector3 v2,Vector3 v3){
        vertices = new Vector3[3];
        vertices[0] = v1;
        vertices[1] = v2;
        vertices[2] = v3;
    }
    
    public Triangle(Vector3 v1, Vector3 v2,Vector3 v3, Vector3 n1, Vector3 n2, Vector3 n3){
        vertices = new Vector3[3];
        vertices[0] = v1;
        vertices[1] = v2;
        vertices[2] = v3;
    
        normals = new Vector3[3];
        normals[0] = n1;
        normals[1] = n2;
        normals[2] = n3;
    }
    
    
    
    /*void computeNormal(){
        Vector3 a = vertices[1].sub(vertices[0]);
        Vector3 b = vertices[2].sub(vertices[0]);
        normal = a.cross(b);
    }*/
    
}
